package com.lovo.project2.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lovo.project2.bean.UserBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IUserBeanMapper extends BaseMapper<UserBean>  {

    UserBean queryAllByNameOrderByPassWordUserBean(@Param("name") String name,@Param("pwd") String pwd);
    void deleteByUserIdUserBeanRole(@Param("userId") int userId);
    void inserUser(@Param("user") UserBean userBean);
    void addUserRole(@Param("userId") int userId, @Param("list")List<Integer> list);
    UserBean queryAByIdByPassWordUserBean(@Param("id") int id,@Param("pwd") String pwd);
}
